<template>
  <div class="m-header">
    <div class="icon"></div>
    <h2 class="text">Music Player</h2>
    <router-link to="/user" tag="div" class="mine">
      <i class="icon-mine"></i>
    </router-link>
  </div>
</template>

<script>
  export default {};
</script>

<style lang="less" scoped="">
  @import '~common/css/variable.less';
  @import '~common/css/mixin.less';

  .bg-img (@url) {
    background-image: url("@{url}@2x.png");
    @media (-webkit-min-device-pixel-ratio: 3),(min-device-pixel-ratio: 3) {
      background-image: url("@{url}@3x.png");
    }
  }

  .m-header {
    position: relative;
    height: 44px;
    text-align: center;
    color: @color-theme;
    font-size: 0;
    .icon {
      display: inline-block;
      margin-top: 6px;
      margin-right: 9px;
      width: 30px;
      height: 32px;
      vertical-align: top;
      .bg-image('logo');

      background-size: 30px 32px;
    }
    .text {
      display: inline-block;
      vertical-align: top;
      line-height: 44px;
      font-size: @font-size-large-x;
    }
    .mine {
      position: absolute;
      top: 0;
      right: 0;
      .icon-mine {
        display: block;
        padding: 12px;
        font-size: 20px;
        color: @color-theme;
      }
    }
  }

</style>
